# $Id: PKGBUILD 89105 2013-04-26 19:07:54Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=intellij-idea-libs
pkgver=12.1.2
_pkgver=129.354
pkgrel=1
pkgdesc="Architecture dependend libraries needed by the Intellij Idea IDE"
arch=('i686' 'x86_64')
url="http://www.jetbrains.org/"
license=('apache')
depends=('glibc')
options=(!strip)
source=(http://download.jetbrains.com/idea/ideaIC-$pkgver.tar.gz)
md5sums=('ad9f4bbd7c8c7a86a4708d3f4bb093ed')

package() {
  cd "$srcdir"

  install -d -m755 "$pkgdir/usr/share/intellijidea-ce/bin"
  install -d -m755 "$pkgdir/usr/lib"

  [ $CARCH == "x86_64" ] && SUFFIX=64
  install -m755 "idea-IC-$_pkgver"/bin/fsnotifier${SUFFIX} "$pkgdir"/usr/share/intellijidea-ce/bin/
  install -m644 "idea-IC-$_pkgver"/bin/libbreakgen${SUFFIX}.so "$pkgdir"/usr/lib
}

# vim:set ts=2 sw=2 et:
